import request from '@/utils/request'

//创建升学路径
export function getAdd(params) {
  return request({
    url: '/mgrService/mgrEntrancePath/addNewEntrancePath',
    method: 'post',
    data: params
  })
}

//通过id删除研学路径
export function getDel(id) {
  return request({
    url: `/mgrService/mgrEntrancePath/deleteEntrancePathById/${id}`,
    method: 'get',
    data: [id]
  })
}

//通过id查询路径详情
export function getInfo(id) {
  return request({
    url: `/mgrService/mgrEntrancePath/queryEntrancePathInfoById/${id}`,
    method: 'get',
    data: [id]
  })
}

//修改升学路径
export function getMod(params) {
  return request({
    url: '/mgrService/mgrEntrancePath/updateEntrancePathById',
    method: 'post',
    data: params
  })
}

//分页查询升学路径
export function getList(params) {
  return request({
    url: '/mgrService/mgrEntrancePath/queryEntrancePathByPage',
    method: 'post',
    data: params
  })
}

//查询所有升学路径筛选条件
export function getCondit() {
  return request({
    url: '/mgrService/mgrEntrancePath/queryAllConditions',
    method: 'post'
  })
}

//删除路径关联的指定条件
export function getDelCon(params) {
  return request({
    url: '/mgrService/mgrEntrancePath/deletePathConditionByPathId',
    method: 'post',
    data: params
  })
}

//删除路径关联的指定院校
export function getDelAca(params) {
  return request({
    url: '/mgrService/mgrEntrancePath/deletePathAcademyByPathId',
    method: 'post',
    data: params
  })
}

//删除路径关联的指定课程
export function getDelCou(params) {
  return request({
    url: '/mgrService/mgrEntrancePath/deletePathCourseByPathId',
    method: 'post',
    data: params
  })
}

//分页查询商品表
export function getCouPage(params) {
  return request({
    url: '/mgrService/mgrEntrancePath/queryCommoditiesByPage',
    method: 'post',
    data: params
  })
}

//管理后台查询所有升学路径筛选条件
export function getCondits() {
  return request({
    url: '/mgrService/mgrEntrancePath/queryAllCondition',
    method: 'post'
  })
}
